From d634403d912d2d84f634c8e0491e9d9347f66fa0 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Thu, 29 Oct 2015 07:08:15 -0400 Subject: [PATCH] actionbar: Add an element name to the css node This lets us avoid hardcoding the type in CSS. --- gtk/gtkactionbar.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gtk/gtkactionbar.c b/gtk/gtkactionbar.c index 4b60de06ae..dd8aaf43ed 100644 --- a/gtk/gtkactionbar.c +++ b/gtk/gtkactionbar.c @@ -43,6 +43,10 @@ * contains an internal centered box which is centered with respect to * the full width of the box, even if the children at either side take * up different amounts of space. + * + * # CSS nodes + * + * GtkActionBar has a single CSS node with name actionbar. */ struct _GtkActionBarPrivate @@ -251,6 +255,7 @@ gtk_action_bar_class_init (GtkActionBarClass *klass) gtk_widget_class_bind_template_child_internal_private (widget_class, GtkActionBar, revealer); gtk_widget_class_set_accessible_role (widget_class, ATK_ROLE_PANEL); + gtk_widget_class_set_css_name (widget_class, "actionbar"); } static void -- 2.30.2